#!/usr/bin/python
#Filename : usr_dict.py

# 'ab' is short for 'a'address'b'ook

ab = { 'kaka': 'kaka@hotmail.com',
	'issta' : 'issta&qq.com',
	'hcy' : 'hcy@gmail.com'
}

print "kaka's address is %s"%ab['kaka']

#add
ab['hcu'] = 'hcu@yahoo.com'
print 'ab leng is',len(ab), 'ab is ',ab

#del
del ab['issta']
print 'ab leng is',len(ab), 'ab is ',ab

for name, address in ab.items():
	print 'contact %s at %s' %(name, address)

if 'hcy' in ab:
	print "\nhcy's address is %s" %ab['hcy']
